package com.copa.module.user.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copa.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * @author copa
 * @createDate 2021-01-13
 * @function   t_user_address表实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_user_address")
@ApiModel(value="UserAddress对象", description="")
public class UserAddressEntity extends BaseEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "手机号码")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "收货人")
    @TableField("consignee")
    private String consignee;

    @ApiModelProperty(value = "是否为默认地址 0否1是")
    @TableField("is_default")
    private Integer isDefault;


    public static final String USER_ID = "user_id";

    public static final String ADDRESS = "address";

    public static final String MOBILE = "mobile";

    public static final String CONSIGNEE = "consignee";

    public static final String IS_DEFAULT = "is_default";


}
